HTMLify
style.css
Views: 16 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } .contact { position: relative; min-height: 100vh; padding: 50px 100px; display: flex; justify-content: center; align-items: center; flex-direction: column; background: #222; } .contact .content { max-width: 800px; text-align: center; } .contact .content h2 { font-size: 3em; color: #fff; font-weight: 500; } .contact .content p { color: #fff; font-size: 1.1em; font-weight: 300; } .container { width: 100%; display: flex; justify-content: center; align-items: center; gap: 50px; margin-top: 30px; } .container .contactInfo { width: 50%; display: flex; flex-direction: column; } .container .contactInfo .box { position: relative; padding: 20px 0; display: flex; cursor: pointer; } .container .contactInfo .box .icon { min-width: 60px; height: 60px; background: #fff; display: flex; justify-content: center; align-items: center; font-size: 1.75em; transition: 0.5s; } .container .contactInfo .box:hover .icon { background: #00bcd4; color: #fff; } .container .contactInfo .box .text { display: flex; flex-direction: column; margin-left: 20px; font-size: 1.1em; color: #fff; font-weight: 300; } .container .contactInfo .box .text h3 { font-weight: 500; color: #00bcd4; } .container .contactInfo .txt { color: #fff; margin-top: 50px; font-weight: 500; padding-left: 10px; border-left: 50px solid #e91e63; line-height: 1em; } .sci { position: relative; display: flex; gap: 30px; margin: 20px 0; } .sci li { list-style: none; } .sci li a { color: #fff; font-size: 2em; transition: 0.5s; } .sci li a:hover { color: #00bcd4; } .container .contactForm { position: relative; width: 40%; background: #fff; min-height: 100px; padding: 60px; } .container .contactForm h2 { font-size: 2em; color: #333; font-weight: 500; } .container .contactForm .inputBox { position: relative; width: 100%; margin-top: 20px; } .container .contactForm .inputBox input, .container .contactForm .inputBox textarea { width: 100%; padding: 5px 0; font-size: 1.1em; margin: 10px 0; border: none; border-bottom: 2px solid #333; outline: none; resize: none; } .container .contactForm .inputBox span { position: absolute; left: 0; pointer-events: none; padding: 5px 0; margin: 10px 0; font-size: 1.1em; color: #666; transition: 0.5s; } .container .contactForm .inputBox input:focus ~ span, .container .contactForm .inputBox textarea:focus ~ span, .container .contactForm .inputBox input:valid ~ span, .container .contactForm .inputBox textarea:valid ~ span { color: #e91e63; font-size: 0.9em; transform: translateY(-20px); } .container .contactForm .inputBox input[type="submit"] { width: 100px; background: #00bcd4; color: #fff; border: none; cursor: pointer; padding: 10px; font-size: 1.1em; font-weight: 500; } /* lets make it responsive */ @media (max-width: 991px) { .contact { padding: 50px; } .container { flex-direction: column; } .container .contactInfo, .container .contactForm { width: 100%; } .container .contactForm { padding: 50px 30px; } } |